/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.osgg.daos;

import java.io.*;
import java.util.*;
import org.hibernate.Query;


/**
 *
 * @author omar
 */

public interface GenericDAO<T, ID extends Serializable> {
 
    public void nuevo(T entity);
 
    public void actualizar(T entity);
 
    public void borrar(T entity);
 
    public List<T> buscarPredeterminado(Query query);
 
    public List buscarTodos(Query query);
 
    public List devolverTodos(Class clazz);
 
    public T buscarPorID(Class clazz, Integer id);
}
